using UnityEngine;

public class BlueBubble : Obstacle
{
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    public float waterAmount;
    void Start()
    {
        
    }
    void OnTriggerEnter2D(Collider2D other)
    {
        if(other.gameObject.layer==LayerMask.NameToLayer("Bubble"))
        {   
            //回血
            Bubble.I.AddWater(waterAmount);
        }
    }
    // Update is called once per frame
    
}
